package tan.dft.dangnhap;

import android.os.Parcel;
import android.os.Parcelable;

public class Dangnhap implements Parcelable {
	private int idmay;
	private String user, password;

	public Dangnhap(int idmay, String user, String password) {
		super();
		this.idmay = idmay;
		this.user = user;
		this.password = password;
	}

	public Dangnhap(Parcel in) {
		idmay = in.readInt();
		user = in.readString();
		password = in.readString();

	}

	public int getIdmay() {
		return idmay;
	}

	public void setIdmay(int idmay) {
		this.idmay = idmay;
	}

	public String getUser() {
		return user;
	}

	public void setUser(String user) {
		this.user = user;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public static Parcelable.Creator<Dangnhap> getCreator() {
		return CREATOR;
	}

	public static final Parcelable.Creator<Dangnhap> CREATOR = new Parcelable.Creator<Dangnhap>() {
		public Dangnhap createFromParcel(Parcel in) {
			return new Dangnhap(in);
		}

		public Dangnhap[] newArray(int size) {
			return new Dangnhap[size];
		}
	};

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(idmay);
		dest.writeString(user);
		dest.writeString(password);
	}

}
